package com.moxi.mogublog.config.jwt.properties;

import com.moxi.mogublog.config.jwt.Audience;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * description
 *
 * @author LiShuai
 * @date 2020/6/1 10:59
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "jwt.token")
public class TokenProperties {

    /**
     * audience 观众/受众
     */
    @Autowired
    private Audience audience;

    /**
     * token 的值的前缀
     */
    private String head;

    /**
     * token请求头自定义标识
     */
    private String header;

    /**
     * 记住账号为7天有效
     */
    private int isRememberMeExpiresSecond;

}
